package com.rb.demo

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.util.Log

/**
 * Created by lgs on 2019/3/30.
 * 广播接收器
 * 动态注册
 */
class MyBroadcast2 : BroadcastReceiver() {

    override fun onReceive(context: Context?, intent: Intent?) {
        val stringExtra = intent?.getStringExtra("actionString")
        Log.i("xxx", "MyBroadcast2 : $stringExtra")
    }
}